<%@page import="com.mmy.domain.scenic.TScenicBase"%>
<%@page import="com.mmy.domain.scenic.VScenicBase"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>

<title>景区信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<div id="menu-back">
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>景点信息</h2>			
		</div>
	</header>
	<section class="container">
	

			<div class="information" >
				<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>景区信息管理</label>
						</h4>	
						
		<div class="input-container">
						
							<div class="select-condition">
							<form action="scenicbaseindex" class="info-form" >
							<span> <label for="searchScenicName">景区名称：</label></span>
							<input id="searchScenicName" type="text" class="input-width" name="strScenicName" maxlength="64" value="${strScenicName}"/>
							<span> <label for="searchScenicContact">联系人：</label></span>
							<input id="searchScenicContact" type="text" class="input-width" name="strScenicContact" maxlength="64" value="${strScenicContact}"/>
							<span> <label for="searchScenicTel">联系电话：</label></span>
							<input id="searchScenicTel" type="text" class="input-width" name="strScenicTel" maxlength="64" value="${strScenicTel}"/>
							
								<br>
								<span><label for="searchScenicProvinceID"  >所属区域：</label></span>			
							
							<select class="input-select-vlign select-height " id="searchScenicProvinceID" name="strProvinceID" emptyOption="false"  onchange="changeSelect(this,'getLevel4','level3','City')" >
					<option value="" <c:if test="${strProvinceID==''}"> selected="selected"</c:if>>--请选择--</option>
					<c:forEach var="lstConstZoneProvince" items="${lstConstZoneProvince}">
						<option value="${lstConstZoneProvince.getZoneID()}" <c:if test="${strProvinceID==lstConstZoneProvince.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class="input-select-vlign select-height  City" name="strCityID" id="searchScenicCityID" emptyOption="false" onchange="changeSelect(this,'getLevel8','level4','ZoneID')">
						<option value="" <c:if test="${strCityID==''}"> selected="selected"</c:if>>--请选择--</option>
						<c:forEach var="lstConstZoneCity" items="${lstConstZoneCity}">
						<option value="${lstConstZoneCity.getZoneID()}" <c:if test="${strCityID==lstConstZoneCity.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneCity.getZoneName()}</option>
						</c:forEach>
						</select> 	
						<select class="input-select-vlign select-height  ZoneID" name="strZoneID" id="searchScenicZoneID" emptyOption="false">
							<option value="" <c:if test="${strZoneID==''}"> selected="selected"</c:if>>--请选择--</option>
						<c:forEach var="lstConstZoneDistrict" items="${lstConstZoneDistrict}">
						<option value="${lstConstZoneDistrict.getZoneID()}" <c:if test="${strZoneID==lstConstZoneDistrict.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneDistrict.getZoneName()}</option>
						</c:forEach>
						</select>
					
							<input type="submit" value="搜索" class="btn"/>
							<input type="reset" value="重置" class="btn"/>
								<div class="at-float-right">
							<input type="button" class="btn " value="增加" onclick="location.href='/mmy/tocreatescenicbase'"/>
							<input type="button" class="btn " value="修改"  onclick="updateScenicBase()"/>
							<input type="button" class="btn"  value="删除" onclick="delScenicBase()"/>
						
							<input type="button" class="btn"  value="电子票计划" onclick="toScenicPlan()"/>
						
							<input type="button" class="btn"  value="购票查询" onclick="location.href='/mmy/toscenicallorderindex'"/>
							</div>
							</form>
						</div>
						
							<table class="info-table" >
					<tr>
						<th>
							<label><input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">全选</label>
						</th>
						<th><label>景区名称</label></th>
						<th><label>景区星级</label></th>
						<th><label>区域名称</label></th>
						<th><label>景区地址</label></th>
						<th><label>联系人</label></th>			
						<th><label>联系电话</label></th>			
						<th><label>备注</label></th>			
					
					</tr>
					
					<c:forEach var="lstScenicBase" items="${lstScenicBase}">
					
					<tr>
						<td>
							<label><input type="checkbox" name="ckone" value="${lstScenicBase.getScenicID()}" onclick="ckOne(this)"></label>
						</td>
						<td><a href = "scenicbaseinfo?iScenicID=${lstScenicBase.getScenicID()}"><label>${lstScenicBase.getScenicName()}</label></a></td>
						<td><label>${lstScenicBase.getRate()}</label></td>
						<td><label>${lstScenicBase.getZoneName()}</label></td>
						<td><label>${lstScenicBase.getAddress()}</label></td>
						<td><label>${lstScenicBase.getContact()}</label></td>
						<td><label>${lstScenicBase.getTel()}</label></td>
						<td><label>${lstScenicBase.getMemo()}</label></td>
					</tr>
				</c:forEach>
					
				</table>
				
						<select class="input-select-vlign" name="pageSize" onchange="scenicBasePageSize(this.options[this.options.selectedIndex].value)">
							<option style="display: none;">${iPageSize}</option>
							<option value="20">20</option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="200">200</option>
						</select> 
								<a href="scenicbaseindex?pageNumber=1&pageSize=${iPageSize}&strScenicName=${strScenicName}&strScenicContact=${strScenicContact}&strScenicTel=${strScenicTel}&strProvinceID=${strProvinceID}&strCityID=${strCityID}&strZoneID=${strZoneID}">首页</a>
						
						<c:choose>
							<c:when test="${iPageNo == 1}">
						
							</c:when>
							<c:otherwise>
								<a href="scenicbaseindex?pageNumber=${iPageNo-1}&pageSize=${iPageSize}&strScenicName=${strScenicName}&strScenicContact=${strScenicContact}&strScenicTel=${strScenicTel}&strProvinceID=${strProvinceID}&strCityID=${strCityID}&strZoneID=${strZoneID}">上一页</a>
							</c:otherwise>
						
						</c:choose>
						<c:choose>
							<c:when test="${iPageNo == iMaxPage}">
						
							</c:when>
							<c:otherwise>
								<a href="scenicbaseindex?pageNumber=${iPageNo+1}&pageSize=${iPageSize}&strScenicName=${strScenicName}&strScenicContact=${strScenicContact}&strScenicTel=${strScenicTel}&strProvinceID=${strProvinceID}&strCityID=${strCityID}&strZoneID=${strZoneID}">下一页</a>
							</c:otherwise>
						
						</c:choose>
							<a href="scenicbaseindex?pageNumber=${iMaxPage}&pageSize=${iPageSize}&strScenicName=${strScenicName}&strScenicContact=${strScenicContact}&strScenicTel=${strScenicTel}&strProvinceID=${strProvinceID}&strCityID=${strCityID}&strZoneID=${strZoneID}">尾页</a>
						
						</div>					
			</div>
			</section>
			</article>
			</main>
			</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		
</body>

</html>